import webapp2
import os
import jinja2
from xs.data.Staff import Staff

jinja_environment = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))

class MainPage(webapp2.RequestHandler):
    def render(self,view,values):
        template = jinja_environment.get_template(view)
        self.response.out.write(template.render(values))
                                
    def get(self):
        template_values = {'name':'test'}
        self.render('view/main.html',template_values)

        
app = webapp2.WSGIApplication([('/', MainPage),
                               ('/data/staff',Staff)], 
                              debug=False)

